package cn.tedu.springdemo.bean;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.stereotype.Component;

/**
 * 铅笔
 */
@Component
@ConditionalOnClass(Student.class)
public class Pencil implements Pen {
    @Override
    public String toString() {
        return "彩色铅笔";
    }
}
